package com.nmf.site.biz.pay.enums;

public enum PayType {
	wechat(1, "微信支付"),
	ali(2, "支付宝支付"),
	;

	public Integer value;
	public String name;

	PayType(int value, String name) {
		this.value = value;
		this.name = name;
	}

	public static PayType getStatus(Integer value) {
		if (value != null) {
			PayType[] otypes = PayType.values();
			for (PayType memberType : otypes) {
				if (value.equals(memberType.value)) {
					return memberType;
				}
			}
		}
		return null;
	}
}
